package com.xintoucloud.gsv.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xintoucloud.gsv.entity.SupervisionReply;
import com.xintoucloud.gsv.mapper.SupervisionReplyMapper;
import com.xintoucloud.gsv.service.SupervisionReplyService;

@Service
@Transactional
public class SupervisionReplyServiceImpl implements SupervisionReplyService{

	@Autowired
	private SupervisionReplyMapper supervisionReplyMapper;
	
	@Override
	@Transactional(readOnly=true)
	public List<SupervisionReply> allsvr() {
		List<SupervisionReply> allsvr = supervisionReplyMapper.allsvr();
		return allsvr;
	}
	
	@Override
	@Transactional(readOnly=true)
	public List<SupervisionReply> theSvidsvr(int svid) {
		List<SupervisionReply> theSvidsvr = supervisionReplyMapper.theSvidsvr(svid);
		return theSvidsvr;
	}

	@Override
	public void save(SupervisionReply supervisionReply) {
		supervisionReplyMapper.save(supervisionReply);
	}

	@Override
	public void dirupdate(String diridea,int rid,int rsid) {
		supervisionReplyMapper.dirupdate(diridea,rid,rsid);
	}

	@Override
	public void dutyupdate(String dutyidea,int rid,int rsid) {
		supervisionReplyMapper.dutyupdate(dutyidea,rid,rsid);	
	}

	@Override
	public void leaderupdate(String leaderidea,int rid,int rsid) {
		supervisionReplyMapper.leaderupdate(leaderidea,rid,rsid);
	}

	@Override
	public void visionupdate(String visionidea,int rid,int rsid) {
		supervisionReplyMapper.visionupdate(visionidea,rid,rsid);	
	}

}
